<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=iso-8859-1" language="java"  errorPage="" %>
<jsp:directive.page import="cbm.commons.SessionContainer"/>
<jsp:directive.page import="cbm.commons.ConstantsWeb"/>
<jsp:directive.page import="cbm.commons.ResultadoOperacionBean"/>
<%
	SessionContainer sc = (SessionContainer)session.getAttribute(ConstantsWeb.SESSION_CONTAINER);
	ResultadoOperacionBean resultadoOPeracion =   (ResultadoOperacionBean)sc.getTemporalElement(ConstantsWeb.RESULTADO_OPERACION);
%>
<html>
<head>
<title>Continuidad Banca Minorista</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/estilos.css"/>
<script src="<%=request.getContextPath() %>/js/util/utiles.js" language="javascript"></script>
<script src="<%=request.getContextPath() %>/js/util/utf8.js"  language="javascript"></script>
<script src="<%=request.getContextPath() %>/js/util/prototype.js"  language="javascript"></script>

<script language="JavaScript">
	var myGlobalHandlers = {
		onCreate: function(){
			Element.show('systemWorking');
		},

		onComplete: function() {
			if(Ajax.activeRequestCount == 0){
				Element.hide('systemWorking');
			}
		}
	};
	Ajax.Responders.register(myGlobalHandlers);
	
</script>

<script type="text/javascript">

	function buscar(){
		$('btnBuscar').disabled;
		var pars = $('form1').serialize();
		var action = '<%=request.getContextPath()%>/confirmacioningreso.do?method=buscar'
		
		var myAjax = new Ajax.Updater(
			$('detalle'),
			action, 
			{ 
				method: 'post',
				parameters: pars
			}
		);
		$('btnBuscar').enabled;
	}
	
	function f_confirmar(numeroregistro,flagestado){
	
		var f = document.forms[0];
		f.hdnnumeroregistro.value  = numeroregistro;
		f.hdnflagestado.value  = flagestado;
		
		var pars = $('form1').serialize();
		var action = '<%=request.getContextPath()%>/confirmacioningreso.do?method=confirmarIngreso'
		
		var myAjax = new Ajax.Updater(
			$('detalle'),
			action, 
			{ 
				method: 'post',
				parameters: pars
			}
		);
	}
	
	function f_limpiar(){
		document.forms[0].reset();
	}
	
</script>
</head>
<body>

				<span id="mensaje" class="error"></span>
				
				
				
				
				
<form name="form1" id="form1" method="post" action="<%=request.getContextPath()%>/confirmacioningreso.do?method=confirmarIngreso">


<input type="hidden" name="hdnnumeroregistro" value="" />
<input type="hidden" name="hdnflagestado" value="" />
<table width="100%" height="100%" align="center">
	<tr>
		<td valign="top" height="140px">
			<div id="maestro">
				<table align="center" cellspacing="2" class="table3" width="100%" cellpadding="0">
					<tr>
						<td colspan="4" class="cuadrotitle">I. Confirmar Ingreso</td>
					</tr>
					<tr class="cuadrocontent">
						<td class="tcelda1" width="175">Registro</td>
						<td width="175">
							<input type="text" name="txtNumeroRegistro" id="txtNumeroRegistro" class="input" />
						</td>
						<td class="tcelda1" width="175">Terminal</td>
						<td width="175"><input type="text" name="txtTerminal" id="txtTerminal" class="input"/></td>
					</tr>
					<tr class="cuadrocontent">
						<td class="tcelda1">Apellido paterno</td>
						<td><input type="text" name="txtApellidoPaterno" 
							id="txtApellidoPaterno" class="input" 
							value="" />
						</td>
						<td class="tcelda1">Puesto</td>
						<td>
							<select name="selPerfil" id="selPerfil" class="combo" readonly="readonly">
								<option value="">[SELECCIONE]</option>
								<c:forEach items="${perfiles}" var="item" varStatus="status">
									<option value="${item.codigoperfil}">
										<c:out value="${item.descripcionperfil}"/>
									</option>
								</c:forEach>
							</select>
						</td>
					</tr>
					<tr class="cuadrocontent">
						<td class="tcelda1">Apellido materno</td>
						<td><input type="text" name="txtApellidoMaterno" 
							id="txtApellidoMaterno" class="input" 
							value="" />
						</td>
						<td class="tcelda1">Estado</td>
						<td>
							<select name="selEstado" id="selEstado" class="combo" readonly="readonly">
								<option value="">[Seleccione]</option>
								<c:forEach items="${estadosconfirmacioningreso}" var="item" varStatus="status">
									<option value="${item.valornumericoentero}">
										<c:out value="${item.descripcion}"/>
									</option>
								</c:forEach>
							</select>
						</td>
					</tr>
					<tr class="cuadrocontent">
						<td class="tcelda1">Nombre</td>
						<td>
							<input type="text" name="txtNombre" id="txtNombre" class="input" 
							value="" />
						</td>
						<td class="tcelda1">Oficina</td>
						<td>
							<select name="selOficina" id="selOficina" class="combo">
								<option value="">[Seleccione]</option>
								<c:forEach items="${oficinas}" var="item" varStatus="status">
									<option value="${item.codigooficina}">
										<c:out value="${item.nombre}"/>
									</option>
								</c:forEach>
							</select>
						</td>
					</tr>
				</table>
			</div>
		
		</td>
	</tr>
	<tr height="24px">
		<td align="center" >
			<div id="botonera">
				<input type="button" value="Buscar" name="btnBuscar" id="btnBuscar" 
					onClick="javascript:buscar();" class="button1"/>
				<input type="button" value="Limpiar" name="btnLimpiar" id="btnLimpiar" 
					onClick="javascript:f_limpiar();" class="button1"/>
			</div>
		</td>
	</tr>
	<tr>
		<td valign="top">
			<div id="detalle">
				<table width="100%">
					<tr>
						<td >
							<table align="left" width="100%"  border="1" cellpadding="0" cellspacing="0" >
								<tr class="tceldatabla1">
							  	    <td class="tceldatabla1" width="66">Registro</td>
									<td class="tceldatabla1" width="160">Nombre</td>
									<td class="tceldatabla1" width="186">Puesto</td>
									<td class="tceldatabla1" width="106">Estado</td>
									<td class="tceldatabla1" width="73">Oficina</td>
									<td class="tceldatabla1" width="5">&nbsp;</td>
								</tr>
								<tr class="cuadrocontentGrilla">
									<td colspan="9" align="left" valign="top">No hay registros.</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
	  </td>
	</tr>
</table>
</form>	


</body>
</html>
<%if(sc != null)sc.removeTemporales();%>